import vue from 'vue'
import vuex from 'vuex'
import user from './user'
import menu from './menu'
import building from './building'
import houses from './houses'
import createPersistedState from 'vuex-persistedstate'
vue.use(vuex)
const store = new vuex.Store({
  
    modules: {
        menu,
        user,
        building,
        houses
    },
    plugins: [createPersistedState()] //添加插件
})
export default store